define({ "api": [
  {
    "type": "post",
    "url": "http://118.192.150.77:9002/public",
    "title": "登录/注册接口",
    "name": "Login_Register",
    "group": "Base",
    "version": "0.1.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "act",
            "description": "<p>login/register</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "phone",
            "description": "<p>用户登录帐号</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "password",
            "description": "<p>用户登录密码</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "status",
            "description": "<p>登录状态 online|busy|stealth/null</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "location",
            "description": "<p>登录坐标 xxx.xxx.xxx.xxx(可空)</p> "
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "optional": false,
            "field": "uid",
            "description": "<p>{Number} 用户在后台的唯一id</p> "
          },
          {
            "group": "Success 200",
            "optional": false,
            "field": "B-Token",
            "description": "<p>{String} token</p> "
          },
          {
            "group": "Success 200",
            "optional": false,
            "field": "expire_time",
            "description": "<p>{Unixtime} token有效期</p> "
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n \"error\":false,\n \"code\":0\n \"data\":{\n           \"token\":\"84c5a1a0f47b029d3022d5c0e812869c\"\n        },\n}",
          "type": "json"
        }
      ]
    },
    "filename": "./1.php",
    "groupTitle": "Base"
  },
  {
    "type": "post",
    "url": "http://118.192.150.77:9002/public",
    "title": "退出",
    "name": "Logout",
    "group": "Base",
    "version": "0.1.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "act",
            "description": "<p>logout</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "B-Token",
            "description": "<p>Header头中添加 (必填)</p> "
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "<p>bool</p> ",
            "optional": false,
            "field": "result",
            "description": "<p>true/false</p> "
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n {\n   \"result\": true/false\n }",
          "type": "json"
        }
      ]
    },
    "filename": "./1.php",
    "groupTitle": "Base"
  },
  {
    "type": "post",
    "url": "http://118.192.150.77:9002/public",
    "title": "获取个人信息",
    "name": "Self_Info",
    "group": "Base",
    "version": "0.1.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "act",
            "description": "<p>self</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "B-Token",
            "description": "<p>Header头中添加 (必填)</p> "
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "optional": false,
            "field": "uid",
            "description": ""
          },
          {
            "group": "Success 200",
            "optional": false,
            "field": "phone",
            "description": ""
          },
          {
            "group": "Success 200",
            "optional": false,
            "field": "name",
            "description": ""
          },
          {
            "group": "Success 200",
            "optional": false,
            "field": "location",
            "description": ""
          },
          {
            "group": "Success 200",
            "optional": false,
            "field": "img",
            "description": ""
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n {\n   \"uid\": 106,\n   \"phone\": 17778057679,\n   \"name\": \"敌法师\",\n   \"location\": \"xxx.xxx.xxx.xxx\"/null,\n   \"img\": \"http://xxx.xxx.com/xxx.jpg\",\n }",
          "type": "json"
        }
      ]
    },
    "filename": "./1.php",
    "groupTitle": "Base"
  },
  {
    "type": "post",
    "url": "http://118.192.150.77:9002/public",
    "title": "获取在线联系人列表",
    "name": "onLine_Friends",
    "group": "Base",
    "version": "0.1.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "act",
            "description": "<p>ollist</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "B-Token",
            "description": "<p>Header头中添加 (必填)</p> "
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "optional": false,
            "field": "uid",
            "description": "<p>{String} 联系人uid.</p> "
          },
          {
            "group": "Success 200",
            "optional": false,
            "field": "name",
            "description": "<p>{String} 联系人姓名</p> "
          },
          {
            "group": "Success 200",
            "optional": false,
            "field": "img",
            "description": "<p>{String} 联系人头像</p> "
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n[\n {\n   \"uid\": 105,\n   \"name\": \"王大锤\",\n   \"img\": \"http://xxx.xxx.com/xxx.jpg\",\n },\n {\n   \"uid\": 106,\n   \"name\": \"敌法师\",\n   \"img\": \"http://xxx.xxx.com/xxx.jpg\",\n }\n]",
          "type": "json"
        }
      ]
    },
    "filename": "./1.php",
    "groupTitle": "Base"
  },
  {
    "type": "TCP",
    "url": "118.192.150.77:9001",
    "title": "发即时消息",
    "name": "Send_Message",
    "group": "TCP",
    "version": "0.1.0",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "act",
            "description": "<p>send</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "uid",
            "description": "<p>对方uid</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "data",
            "description": "<p>发送的数据</p> "
          },
          {
            "group": "Parameter",
            "type": "<p>String</p> ",
            "optional": false,
            "field": "B-Token",
            "description": "<p>Header头中添加 (必填)</p> "
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "<p>bool</p> ",
            "optional": false,
            "field": "result",
            "description": "<p>true/false</p> "
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "TCP\n {\n   \"result\": true/false\n }",
          "type": "json"
        }
      ]
    },
    "filename": "./1.php",
    "groupTitle": "TCP"
  }
] });